package cn.sciento.starter.social.core.common.connect;

import cn.sciento.starter.social.core.common.api.SocialApi;
import cn.sciento.starter.social.core.provider.Provider;
import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;
import org.springframework.social.oauth2.OAuth2Operations;

public abstract class SocialServiceProvider extends AbstractOAuth2ServiceProvider<SocialApi> {
  public SocialServiceProvider(Provider provider, SocialTemplate template) {
    super((OAuth2Operations)template);
  }
  
  public SocialApi getApi(String accessToken) {
    return getSocialApi(accessToken);
  }
  
  public abstract SocialApi getSocialApi(String paramString);
}
